      //function to fix height of iframe!
      var calcHeight = function() {
        var headerDimensions = $('#header-bar').height();
        $('#preview-frame').height($(window).height() - headerDimensions);
      }
      
      $(window).resize(function() {
        calcHeight();
      }).load(function() {
        calcHeight();
      });